$(function () {
    setLoginData()
})

function setLoginData() {
    $(".x-red").html(sessionStorage.getItem("username"));
    let date = new Date();
    $("#loginTime").html(date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate() + "  " + date.getHours() + "时" + date.getMinutes() + "分" + date.getSeconds() + "秒");
}